package com.motu.monstercity.server.game.base;

public class LockKey {
    // 本服的派对
    public static String getServerFeastlock(long userId, int feastMainId) {
        return "lock.serverFeast." + userId + "." + feastMainId;
    }

    // 物资争夺
    public static String getSnatchLock(int serverId) {
        return "lock.snatch." + serverId;
    }


    //结婚目标子嗣
    public static String getMarryLock(long childId) {
        return "lock.child.marry." + childId;
    }

    // 大世界行军的行军队伍
    public static String getWorldTeam(long userId) {
        return "lock.world.team." + userId;
    }

    // 怪兽洞窟,同区域挑战时，按区域加锁
    public static String getCaveLockArea(int serverId, int areaType) {
        return "lock.snatch.s" + serverId + "." + areaType;
    }

    // 怪兽洞窟，跨区域挑战时，按服加锁, 我在4区域第一名，或是5区域的底部5名，或是5区域的第1名，或是6区域的底部5名时，需要全服加锁
    public static String getCaveLock(int serverId) {
        return "lock.snatch.s" + serverId;
    }

    // 联盟乱斗
    public static String getUnionScuffleLock(long unionId) {
        return "lock.unionScuffle." + unionId;
    }

    public static String getUnionRankActLock(long unionId, int rankId) {
        return "lock.unionRankAct." + unionId + "." + rankId;
    }
    public static String getUnionCrossRankActLock(long unionId, int rankId) {
        return "lock.unionCrossRankAct." + unionId + "." + rankId;
    }

    // 联盟信息
    public static String getUnionInfoLock(long unionId) {
        return "lock.unionInfo." + unionId;
    }

    public static String getUnionBuildLock(long unionId,int buildId) {
        return "lock.unionBuild." + unionId+"."+buildId;
    }

    public static String getUnionBusinessLock(long unionId) {
        return "lock.unionBusiness." + unionId;
    }

    public static String getUnionBossLock(long unionId) {
        return "lock.unionBoss." + unionId;
    }


    // 联盟宝箱
    public static String getUnionBoxLock(long unionId) {
        return "lock.unionBox." + unionId;
    }

    // 地标装饰
    public static String getUnionDecorationLock(long unionId) {
        return "lock.unionDecoration." + unionId;
    }

    // 联盟总动员
    public static String getUnionMobileLock(long unionId) {
        return "lock.unionMobile." + unionId;
    }
}
